package com.example.statistics.utils.file

fun deleteFolder(path: String) {
    FileDelete.delete(path)
}

/**
 * 文件后缀（eg、".png",".doc"）
 */
val String.fileSuffix: String
    get() {
        val index = this.lastIndexOf(".")
        if (index != -1) {
            return substring(index, this.length)
        }
        return ""
    }